package itdfq.dfq.Behavior_Patters.observe;

/**
 * @Author GocChin
 * @Date 2021/5/23 13:34
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210136  杨丹丹");
        ConcreteSubject subject = new ConcreteSubject();
        Observer observer1 = new ConcreteObserver();
        Observer observer2 = new ConcreteObserver();
        subject.addObserver(observer1);
        subject.addObserver(observer2);
        subject.pushNewMessage("腾讯招聘10个java后端开发实习生");
        subject.notifyObserver();
        subject.deleteObserver(observer2);
        subject.pushNewMessage("阿里招聘20个web后端开发实习生");
        subject.notifyObserver();
    }
}
